<%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8" %>
<%@ include file="/home/include/init_home.jsp" %>
<%
	String est_no	= StringUtil.nvl(request.getParameter("est_no"));
	String est_seq 	= StringUtil.nvl(request.getParameter("est_seq"));

	HashMap param = new HashMap();
	param.put("est_no", est_no);
	param.put("est_seq", est_seq);

	HashList list = DBManager.executeQuery("/sales.xml", "select_hotel_voucher", param);
	HashList customerList = DBManager.executeQuery("/sales.xml", "select_customer_list", param);
%>
<html>
<head>
<style type="text/css">
<!--
.vc_basic {
	font-family: Verdana, Arial, "굴림";
	font-size: 14px;
	color: #333333;
	text-decoration: none;
	line-height: 16px;
}
body {
	margin-left: 0px;
	margin-top: 0px;
}
.vc_basic1 {	font-family: Verdana, Arial, "굴림";
	font-size: 12px;
	color: #333333;
	text-decoration: none;
	line-height: 12px;
}
.style4 {font-size: 20px}
input {
	border-top:0px;
	border-left:0px;
	border-right:0px;
	border-bottom:0px solid #000;
	text-align:center;
	width:100%;
}
-->
</style>
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/js/common2.js"></script>
<script>
	$(document).ready(function() {
	<%	if ("".equals(session_dept_code)) { %>
		$('input[type="text"]').each(function(){
			$(this).closest('td').html($(this).val());
		});
	<%	}	%>
	});


	function fnSaveVoucher() {
		$('#saveForm').submit();
	}
</script>
</head>
<body>
<div class="print" style="text-align:right; padding:5px;">
	<a href="#nohref" onclick="cfPrint()"><img src="/images/icon/btn_print.gif" border="0"/></a>
<%	if (!"".equals(session_dept_code)) { %>
	<a href="#nohref" onclick="fnSaveVoucher()"><img src="/images/icon/btn_save.gif" border="0"/></a>
<%	} %>	
	<a href="#nohref" onclick="self.close()"><img src="/images/icon/btn_close.gif" border="0"/></a>
</div>
<form name="saveForm" id="saveForm" method="post" action="/admin/sales/voucherSave.do">
<input type="hidden" name="voucher_gubn" value="hotel"/>
<input type="hidden" name="est_no" value="<%=est_no %>"/>
<input type="hidden" name="est_seq" value="<%=est_seq %>"/>
<table width="869" height="1300" border="1" bordercolor="#999999" cellspacing="0" cellpadding="0">
  <tr>
    <td background="img/bg.jpg" style="background-repeat:no-repeat; background-position:bottom;"><table width="869" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><table width="829" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="100" height="143"></td>
            <td ><table border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td align="right"><img src="img/flower.png"></td>
                <td width="10"></td>
                <td><font style="color:#333333; font-family:dotum; font-size:30px; font-weight:bold"><b>HOTEL VOUCHER</b></font></td>
              </tr>
            </table></td>
            <td width="100"></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td height="858"><table width="829" height="858" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="829"><table width="829" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="2" bgcolor="#9c9c9c"></td>
                <td bgcolor="#9c9c9c"></td>
              </tr>
              <tr>
                <td width="105" height="55" align="center" bgcolor="#f0f0f0"><img src="img/hotel_1.jpg" width="53" height="17"></td>
                <td align="center" class="vc_basic"><input class="style4" type="text" value="<%= list.get("hotel_eng_name", 0) %>"/><br/>
                  <input type="text" value="(<%= list.get("addr", 0) %>)"/></td>
              </tr>
              <tr>
                <td height="1" bgcolor="#b2b2b2"></td>
                <td height="1" bgcolor="#b2b2b2"></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="10"></td>
          </tr>
          <tr>
            <td><table width="829" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="395"><table width="395" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="2" width="105" bgcolor="#9c9c9c"></td>
                    <td bgcolor="#9c9c9c"></td>
                  </tr>
                  <tr>
                    <td width="105" height="52" align="center" bgcolor="#f0f0f0"><img src="img/hotel_2.jpg" width="72" height="17"></td>
                    <td align="center" class="vc_basic"><input type="text" class="vc_basic" value="<%= list.get("start_dt", 0) %>"/></td>
                  </tr>
                  <tr>
                    <td height="1" bgcolor="#b2b2b2"></td>
                    <td height="1" bgcolor="#b2b2b2"></td>
                  </tr>
                  <tr>
                    <td height="52" align="center" bgcolor="#f0f0f0"><img src="img/hotel_3.jpg" width="91" height="17"></td>
                    <td align="center" class="vc_basic"><input type="text" class="vc_basic" value="<%= list.get("end_dt", 0) %>"/></td>
                  </tr>
                  <tr>
                    <td height="1" bgcolor="#b2b2b2"></td>
                    <td height="1" bgcolor="#b2b2b2"></td>
                  </tr>
                  <tr>
                    <td height="52" align="center" bgcolor="#f0f0f0"><img src="img/hotel_4.jpg" width="51" height="17"></td>
                    <td align="center" class="vc_basic"><input type="text" class="vc_basic" value="<%= list.get("stay_day", 0) %>"/></td>
                  </tr>
                  <tr>
                    <td height="1" bgcolor="#b2b2b2"></td>
                    <td height="1" bgcolor="#b2b2b2"></td>
                  </tr>
                  <tr>
                    <td height="52" align="center" bgcolor="#f0f0f0"><img src="img/hotel_cfm.jpg" ></td>
                    <td align="center"><input type="text" name="confirm_no" value="<%= list.get("confirm_no", 0) %>"/></td>
                  </tr>
                  <tr>
                    <td height="1" bgcolor="#b2b2b2"></td>
                    <td height="1" bgcolor="#b2b2b2"></td>
                  </tr>
                </table></td>
                <td width="39">&nbsp;</td>
                <td width="395"><table width="395" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="2" width="105" bgcolor="#9c9c9c"></td>
                    <td bgcolor="#9c9c9c"></td>
                  </tr>
                  <tr>
                    <td width="119" height="42" align="center" bgcolor="#f0f0f0"><img src="img/hotel_5.jpg" width="91" height="17"></td>
                    <td align="center" class="vc_basic"><input type="text" class="vc_basic" value="<%= list.get("room_type", 0) %>"/></td>
                  </tr>
                  <tr>
                    <td height="1" bgcolor="#b2b2b2"></td>
                    <td height="1" bgcolor="#b2b2b2"></td>
                  </tr>
                  <tr>
                    <td height="42" align="center" bgcolor="#f0f0f0"><img src="img/hotel_6.jpg" width="76" height="17"></td>
                    <td align="center" class="vc_basic"><input type="text" class="vc_basic" value="<%= list.get("bed_type", 0) %>"/></td>
                  </tr>
                  <tr>
                    <td height="1" bgcolor="#b2b2b2"></td>
                    <td height="1" bgcolor="#b2b2b2"></td>
                  </tr>
                  <tr>
                    <td height="42" align="center" bgcolor="#f0f0f0"><img src="img/hotel_7.jpg" width="91" height="17"></td>
                    <td align="center" class="vc_basic"><input type="text" class="vc_basic" value="<%= list.get("bfst_yn", 0) %>"/></td>
                  </tr>
                  <tr>
                    <td height="1" bgcolor="#b2b2b2"></td>
                    <td height="1" bgcolor="#b2b2b2"></td>
                  </tr>
                  <tr>
                    <td height="42" align="center" bgcolor="#f0f0f0"><img src="img/hotel_8.jpg" width="91" height="17"></td>
                    <td align="center" class="vc_basic"><input type="text" class="vc_basic" value="<%= list.get("porterage_yn", 0) %>"/></td>
                  </tr>
                  <tr>
                    <td height="1" bgcolor="#b2b2b2"></td>
                    <td height="1" bgcolor="#b2b2b2"></td>
                  </tr>
                  <tr>
                    <td height="42" align="center" bgcolor="#f0f0f0"><img src="img/hotel_etc.jpg" ></td>
                    <td align="center"><input type="text" name="remarks" value="<%= list.get("remarks", 0) %>"/></td>
                  </tr>
                  <tr>
                    <td height="1" bgcolor="#b2b2b2"></td>
                    <td height="1" bgcolor="#b2b2b2"></td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="10"></td>
          </tr>
          <tr>
            <td><table width="829" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="354" height="2" bgcolor="#9c9c9c"></td>
                <td height="2" bgcolor="#9c9c9c"></td>
                <td width="225" height="2" bgcolor="#9c9c9c"></td>
                <td height="2" bgcolor="#9c9c9c"></td>
                <td width="246" height="2" bgcolor="#9c9c9c"></td>
              </tr>
              <tr>
                <td width="354" height="55" align="center" bgcolor="#f0f0f0"><img src="img/hotel_9.jpg" width="48" height="17"></td>
                <td width="1" bgcolor="#b2b2b2"></td>
                <td width="227" align="center" bgcolor="#f0f0f0"><img src="img/hotel_10.jpg" alt="" width="30" height="17"></td>
                <td width="1" bgcolor="#b2b2b2"></td>
                <td width="246" align="center" bgcolor="#f0f0f0"><img src="img/hotel_11.jpg"  height="17"></td>
              </tr>
              <tr>
                <td height="1" bgcolor="#b2b2b2"></td>
                <td height="1" bgcolor="#b2b2b2"></td>
                <td height="1" bgcolor="#b2b2b2"></td>
                <td height="1" bgcolor="#b2b2b2"></td>
                <td height="1" bgcolor="#b2b2b2"></td>
              </tr>
          <%	for (int i = 0; i < customerList.size(); i++) { %>
             <tr>
                <td height="55" align="center" class="vc_basic"><input type="text" class="vc_basic" value="<%= customerList.get("customer_eng_name", i) %>"/></td>
                <td width="1" bgcolor="#b2b2b2"></td>
                <td align="center" class="vc_basic"><input type="text" class="vc_basic" value="<%= customerList.get("sex", i) %>"/></td>
                <td width="1" bgcolor="#b2b2b2"></td>
                <td align="center" class="vc_basic"><input type="text" class="vc_basic" value="<%= customerList.get("res_no", i) %>"/></td>
              </tr>
              <tr>
                <td height="1" align="center" bgcolor="#b2b2b2"></td>
                <td height="1" align="center" bgcolor="#b2b2b2"></td>
                <td height="1" align="center" bgcolor="#b2b2b2"></td>
                <td height="1" align="center" bgcolor="#b2b2b2"></td>
                <td height="1" align="center" bgcolor="#b2b2b2"></td>
              </tr>
         <%	} %>
            </table></td>
          </tr>
          <tr>
            <td height="10">            </td>
          </tr>
          <tr>
            <td><table width="829" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td><table width="395" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="2" bgcolor="#9c9c9c"></td>
                      <td bgcolor="#9c9c9c"></td>
                    </tr>
                    <tr>
                      <td width="152" height="35" align="center" bgcolor="#f0f0f0"><img src="img/sel_8.jpg" width="81" height="17"></td>
                      <td align="center" class="vc_basic"><input type="text" class="vc_basic" value="<%= list.get("issue_date", 0) %>"/></td>
                    </tr>
                    <tr>
                      <td height="1" bgcolor="#b2b2b2"></td>
                      <td height="1" bgcolor="#b2b2b2"></td>
                    </tr>
                </table></td>
                <td width="39"></td>
                <td><table width="395" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="2" bgcolor="#9c9c9c"></td>
                      <td bgcolor="#9c9c9c"></td>
                    </tr>
                    <tr>
                      <td width="79" height="35" align="center" bgcolor="#f0f0f0"><img src="img/sel_9.jpg" width="32" height="17"></td>
                      <td align="center" class="vc_basic"><input type="text" class="vc_basic" value="<%= list.get("issue_user", 0) %>"/></td>
                    </tr>
                    <tr>
                      <td height="1" bgcolor="#b2b2b2"></td>
                      <td height="1" bgcolor="#b2b2b2"></td>
                    </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="40"></td>
          </tr>
          <tr>
            <td><img src="img/info.jpg"></td>
          </tr>
          <tr>
            <td height="10"></td>
          </tr>
          <tr>
            <td height="1" bgcolor="#00c0ff"></td>
          </tr>
          <tr>
            <td height="20"></td>
          </tr>
          <tr>
            <td width="829" height="299" align="left" valign="top" class="vc_basic1"><p>* 하와이의 모든 호텔은 BED TYPE 과 층수의 확정 예약이 불가합니다.</p>
              <p>* BED TYPE 은 확정 사항이 아니므로 당일 호텔 사정에 의해  2BED로 배정 받으실 수 있습니다.</p>
              <p>* PORTERAGE를 선지불 하신 분은 호텔 Check In시 벨데스크에 짐을 맡기셔야 Check In &amp; Check Out시 무료 짐 이동서비스를 받으실 수 있습니다.</p>
              <p>* 호텔 Check In시 예약자 본인임을 확인할 수 있는 신분증(여권or운전면허증) 및 신용카드를 제시하셔야 합니다. </p>
              <p>&nbsp;&nbsp;&nbsp;신용카드는 개인 서비스 비용에 대한 디파짓용(보증금)으로 사용됩니다.</p>
              <p>* Check Out시 객실키를 반납하시고 객실료 외 기타 청구내역의 유무를 꼭 확인하신 뒤 청구된 비용은 크레딧카드 또는 현금으로 지불 하실 수 있습니다. </p>
              <p>* 호텔 전화기에 불이 깜빡이면 메시지가 저장되어 있다는 뜻이니 확인하시기 바랍니다.</p>
              <p>* 객실 룸 메이드 팁은 객실당 1일 $2 정도 침대 위에 놓아 주시면 됩니다.</p></td>
          </tr>




        </table></td>
      </tr>
      <tr>
        <td height="230" align="center" valign="bottom"><p><img src="img/bottom_joinhawaii2.jpg" alt="" width="253" height="115"></p>
          <p></p></td>
      </tr>
    </table></td>
  </tr>
</table>
</form>
</body>


</html>
